﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using AutoR.Services;
using Prism.Mvvm;

namespace AutoR.Models
{
	// Token: 0x020001A5 RID: 421
	public class RankListDestroy : BindableBase
	{
		// Token: 0x170001FC RID: 508
		// (get) Token: 0x06000880 RID: 2176 RVA: 0x0006A059 File Offset: 0x00068259
		// (set) Token: 0x06000881 RID: 2177 RVA: 0x0006A064 File Offset: 0x00068264
		public List<LBDataDestroy> list
		{
			[CompilerGenerated]
			get
			{
				return this.<list>k__BackingField;
			}
			[CompilerGenerated]
			set
			{
				if (object.Equals(this.<list>k__BackingField, value))
				{
					return;
				}
				this.<list>k__BackingField = value;
				this.OnPropertyChanged(<>PropertyChangedEventArgs.MyShip);
				this.OnPropertyChanged(<>PropertyChangedEventArgs.list);
			}
		}

		// Token: 0x170001FD RID: 509
		// (get) Token: 0x06000882 RID: 2178 RVA: 0x0006A09F File Offset: 0x0006829F
		// (set) Token: 0x06000883 RID: 2179 RVA: 0x0006A0A8 File Offset: 0x000682A8
		public int my
		{
			[CompilerGenerated]
			get
			{
				return this.<my>k__BackingField;
			}
			[CompilerGenerated]
			set
			{
				if (this.<my>k__BackingField == value)
				{
					return;
				}
				this.<my>k__BackingField = value;
				this.OnPropertyChanged(<>PropertyChangedEventArgs.my);
			}
		}

		// Token: 0x170001FE RID: 510
		// (get) Token: 0x06000884 RID: 2180 RVA: 0x0006A0D8 File Offset: 0x000682D8
		public string MyShip
		{
			get
			{
				return string.Join(", ", (from i in this.list
				where i.uid == Runtime.Game.User.uid
				select i).Select(delegate(LBDataDestroy i)
				{
					ShipConfig shipConfig = Runtime.Configs.shipCard.SingleOrDefault((ShipConfig s) => s.cid == i.shipCid);
					if (shipConfig == null)
					{
						return null;
					}
					return shipConfig.title;
				}));
			}
		}
	}
}
